package com.java.tutorials.jdk7.datetime;
import java.util.Calendar;
import java.util.SimpleTimeZone;
/**
 * Created by xuzhike on 2016/1/23.
 * http://www.java2s.com/Code/Java/JDK-7/GetobservesDaylightTimefromSimpleTimeZone.htm
 * Get observes Daylight Time from SimpleTimeZone
 */
public class DaylightTimeTest {
    public static void main(String[] args) {
        SimpleTimeZone simpleTimeZone = new SimpleTimeZone(-21600000, "CST",
                Calendar.MARCH, 1, -Calendar.SUNDAY, 7200000, Calendar.NOVEMBER, -1,
                Calendar.SUNDAY, 7200000, 3600000);

        System.out.println(simpleTimeZone.getDisplayName() + " - "
                + simpleTimeZone.observesDaylightTime());


    }
}
